package entity

import (
	"encoding/json"
	"github.com/gin-gonic/gin"
)

type UserVideoCollectLoveUpload struct {
	Uid int `json:"uid"`
	Vid int `json:"vid"`
}

// 请求体中获取 UserVideoCollectLoveUpload 对象
func GetUserVideoCollectLoveUpload(c *gin.Context) UserVideoCollectLoveUpload {
	data, _ := c.GetRawData()
	var u UserVideoCollectLoveUpload
	_ = json.Unmarshal(data, &u)
	return u
}
